package com.graduate.bssp.service.impl;

import com.graduate.base.entity.PageInfo;
import com.graduate.bssp.entity.Comic;
import com.graduate.bssp.dao.ComicMapper;
import com.graduate.bssp.service.IComicService;
import com.graduate.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 动画表 服务实现类
 * </p>
 *
 * @author yongqiangyao
 * @since 2018-02-05
 */
@Service("comicService")
public class ComicServiceImpl extends BaseServiceImpl<ComicMapper, Comic> implements IComicService {
    @Autowired
    private ComicMapper comicMapper;

    @Override
	public List<Comic> selectList(){
	    return comicMapper.selectList();
    }
    @Override
    public Integer selectCountList(){
	    return comicMapper.selectCountList();
    }
    @Override
    public List<Comic> selectComicList(PageInfo<Comic> pageInfo){
        return comicMapper.selectComicList(pageInfo);
    }

    @Override
    public boolean insertComic(Comic comic) {
        return comicMapper.insertComic(comic);
    }

    @Override
    public Comic findById(int id){
        return comicMapper.findById(id);
    }
    @Override
    public Integer updateFilm(Comic comic){
        return comicMapper.updateFilm(comic);
    }
    @Override
    public Integer deleteComicById(Integer id){
        return comicMapper.deleteComicById(id);
    }
    @Override
    public Integer selectComicCountList(PageInfo<Comic> pageInfo){
        return comicMapper.selectComicCountList( pageInfo);
    }
}
